<?
    // Initialize the session.
    session_start();
    require_once("../inc/checkAdminPagePermissions.php");
    require_once("../inc/config.inc.php");
    require_once('../conexion.php');
	function cambiafechamysql($fecha){ 
      ereg( "([0-9]{1,2})/([0-9]{1,2})/([0-9]{2,4})", $fecha, $mifecha); 
      $fechana=$mifecha[3]."-".$mifecha[2]."-".$mifecha[1]; 
      return $fechana;
     }
	  function cambiafecha($fecha){ 
         ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
         $lafecha = $mifecha[3] . "/" . $mifecha[2] . "/" . $mifecha[1]; 
         return $lafecha;
       }
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<html>
<head>
    <title><? echo _SITE_NAME; ?> :: Panel Administrativo :: Inicio</title>
    <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
	<link href="../calendar/CalendarControl.css"      rel="stylesheet" type="text/css">
     <script src="../calendar/CalendarControl.js"        language="javascript"></script>
<SCRIPT LANGUAGE="JavaScript" SRC="../reloj/timepicker.js"></SCRIPT>
    <link href="../css/main.css" type=text/css rel=stylesheet>
	<script>
	function cerrar()
{
if (confirm("Desea salir sin aplicar los cambios ?"))
   {
    document.location="servicio.php";
   }
}
	
var nav4 = window.Event ? true : false;
function acceptNum(e){ 

var key;

 if(window.event) // IE
 {
  key = e.keyCode;
 }
  else if(e.which) // Netscape/Firefox/Opera
 {
  key = e.which;
 }

 if (key < 46 || key > 57) 
    {
      return false;
    }

 return true;

}

function validarnumeros(e) {
    tecla = (document.all)?e.keyCode:e.which;
    if (tecla==8) return true;
    patron = /^\d+\.?\d*$/;
	
    te = String.fromCharCode(tecla);
    return patron.test(te); 
} 
function validar(forma)
{
if ((forma.preventivo.checked==false) && (forma.correctivo.checked==false) && (forma.calibracion.checked==false) && (forma.instalacion.checked==false) && (forma.retiro.checked==false) && (forma.prospeccion.checked==false) && (forma.otros.checked==false)) 
{
 alert("Seleccione alguna operacion a realizar");
 forma.preventivo.focus();
 return false;
}

if (forma.fecha.value=="")
{
 alert("Por favor introduzca fecha del servicio");
 forma.fecha.focus();
 return false;
}

if (forma.horaentrada.value=="")
{
 alert("Por favor introduzca hora de inicio del servicio");
 forma.horaentrada.focus();
 return false;
}
if (forma.horasalida.value=="")
{
 alert("Por favor introduzca hora de salida del servicio");
 forma.horasalida.focus();
 return false;
}
if (forma.tecnico.value=="")
{
 alert("Por favor introduzca nombre del tecnico");
 forma.tecnico.focus();
 return false;
}
if (forma.ubicacion.value=="")
{
 alert("Por favor introduzca ubicacion del equipo");
 forma.ubicacion.focus();
 return false;
}
if (forma.responsable.value=="")
{
 alert("Por favor introduzca responsable");
 forma.responsable.focus();
 return false;
}


return true;
}
function Ir() { 
  document.location="servicio.php";
  
}
	</script>
</head>


<!-- BEGIN MAIN CONTENT ARE -->
<body style="background: #ffffff;">

<div align="left">
  <h4>Servicio -> Servicio a Equipos -> Modificar</h4>
</div>
<?php

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
	
	@$preventivo=$_POST["preventivo"]; 
	@$correctivo=$_POST["correctivo"]; 
	@$calibracion=$_POST["calibracion"]; 
	@$instalacion=$_POST["instalacion"]; 
	@$retiro=$_POST["retiro"]; 
	@$prospeccion=$_POST["prospeccion"]; 
	@$otros=$_POST["otros"]; 
	$fecha=cambiafechamysql($_POST["fecha"]); 
	@$horaentrada=$_POST["horaentrada"]; 
	@$horasalida=$_POST["horasalida"]; 
	@$tecnico=$_POST["tecnico"]; 
	@$ubicacion=$_POST["ubicacion"]; 
	@$responsable=$_POST["responsable"]; 
	@$idcliente=$_POST["cliente"]; 
	@$p1=$_POST["p1"]; 
	@$p2=$_POST["p2"]; 
	@$p3=$_POST["p3"]; 
	@$p4=$_POST["p4"]; 
	@$p5=$_POST["p5"]; 
	@$p6=$_POST["p6"]; 
	@$p7=$_POST["p7"]; 
	@$p8=$_POST["p8"]; 
	@$p9=$_POST["p9"]; 
	@$p10=$_POST["p10"]; 
	@$p11=$_POST["p11"]; 
	@$p12=$_POST["p12"]; 
	@$p13=$_POST["p13"]; 
	@$p14=$_POST["p14"]; 
	@$p15=$_POST["p15"]; 
	@$p16=$_POST["p16"]; 
	@$p17=$_POST["p17"]; 
	@$p18=$_POST["p18"]; 
	@$p19=$_POST["p19"]; 
	@$p20=$_POST["p20"]; 
	@$p21=$_POST["p21"]; 
	@$p22=$_POST["p22"]; 
	@$p23=$_POST["p23"]; 
	@$p24=$_POST["p24"]; 
	@$p25=$_POST["p25"]; 
	@$p26=$_POST["p26"]; 
	@$p27=$_POST["p27"]; 
	@$p28=$_POST["p28"]; 
	@$p29=$_POST["p29"]; 
	@$p30=$_POST["p30"]; 
	@$p31=$_POST["p31"]; 
	@$p32=$_POST["p32"]; 
	@$energia=$_POST["energia"]; 
	@$depurador=$_POST["depurador"]; 
	@$filtro=$_POST["filtro"]; 
	@$ch1=$_POST["ch1"]; 
	@$ch2=$_POST["ch2"]; 
	@$ch3=$_POST["ch3"]; 
	@$ch4=$_POST["ch4"]; 
	@$ch5=$_POST["ch5"]; 
	@$ch6=$_POST["ch6"]; 
	@$ch7=$_POST["ch7"]; 
	@$ch8=$_POST["ch8"]; 
	@$ch9=$_POST["ch9"]; 
	@$ch10=$_POST["ch10"]; 
	@$ch11=$_POST["ch11"]; 
	@$ch12=$_POST["ch12"]; 
	@$ch13=$_POST["ch13"]; 
	@$ch14=$_POST["ch14"]; 
	@$ch15=$_POST["ch15"]; 
	@$ch16=$_POST["ch16"]; 
	@$ch17=$_POST["ch17"]; 
	@$ch18=$_POST["ch18"]; 
	@$ch19=$_POST["ch19"]; 
	@$ch20=$_POST["ch20"]; 
	@$ch21=$_POST["ch21"]; 
	@$filtro1=$_POST["filtro1"]; 
	@$c1=$_POST["c1"]; 
	@$c2=$_POST["c2"]; 
	@$c3=$_POST["c3"]; 
	@$c4=$_POST["c4"]; 
	@$c5=$_POST["c5"]; 
	@$c6=$_POST["c6"]; 
	@$c7=$_POST["c7"]; 
	@$c8=$_POST["c8"]; 
	@$c9=$_POST["c9"]; 
	@$c10=$_POST["c10"]; 
	@$c11=$_POST["c11"]; 
	@$c12=$_POST["c12"]; 
	@$c13=$_POST["c13"]; 
	@$mes=$_POST["mes"]; 
	@$azucar=$_POST["azucar"]; 
	@$vasos=$_POST["vasos"]; 
	@$cafe=$_POST["cafe"];
	$id=$_POST["id"];
	$cadena="UPDATE servicio 
	SET
	preventivo = '$preventivo' , 
	correctivo = '$correctivo' , 
	calibracion = '$calibracion' , 
	instalacion = '$instalacion' , 
	retiro = '$retiro' , 
	prospeccion = '$prospeccion' , 
	otros = '$otros' , 
	fecha = '$fecha' , 
	horaentrada = '$horaentrada' , 
	horasalida = '$horasalida' , 
	tecnico = '$tecnico' , 
	ubicacion = '$ubicacion' , 
	responsable = '$responsable' , 
	idcliente = '$idcliente' , 
	p1 = '$p1' , 
	p2 = '$p2' , 
	p3 = '$p3' , 
	p4 = '$p4' , 
	p5 = '$p5' , 
	p6 = '$p6' , 
	p7 = '$p7' , 
	p8 = '$p8' , 
	p9 = '$p9' , 
	p10 = '$p10' , 
	p11 = '$p11' , 
	p12 = '$p12' , 
	p13 = '$p13' , 
	p14 = '$p14' , 
	p15 = '$p15' , 
	p16 = '$p16' , 
	p17 = '$p17' , 
	p18 = '$p18' , 
	p19 = '$p19' , 
	p20 = '$p20' , 
	p21 = '$p21' , 
	p22 = '$p22' , 
	p23 = '$p23' , 
	p24 = '$p24' , 
	p25 = '$p25' , 
	p26 = '$p26' , 
	p27 = '$p27' , 
	p28 = '$p28' , 
	p29 = '$p29' , 
	p30 = '$p30' , 
	p31 = '$p31' , 
	p32 = '$p32' , 
	energia = '$energia' , 
	depurador = '$depurador' , 
	filtro = '$filtro' , 
	ch1 = '$ch1' , 
	ch2 = '$ch2' , 
	ch3 = '$ch3' , 
	ch4 = '$ch4' , 
	ch5 = '$ch5' , 
	ch6 = '$ch6' , 
	ch7 = '$ch7' , 
	ch8 = '$ch8' , 
	ch9 = '$ch9' , 
	ch10 = '$ch10' , 
	ch11 = '$ch11' , 
	ch12 = '$ch12' , 
	ch13 = '$ch13' , 
	ch14 = '$ch14' , 
	ch15 = '$ch15' , 
	ch16 = '$ch16' , 
	ch17 = '$ch17' , 
	ch18 = '$ch18' , 
	ch19 = '$ch19' , 
	ch20 = '$ch20' , 
	ch21 = '$ch21' , 
	filtro1 = '$filtro1' , 
	c1 = '$c1' , 
	c2 = '$c2' , 
	c3 = '$c3' , 
	c4 = '$c4' , 
	c5 = '$c5' , 
	c6 = '$c6' , 
	c7 = '$c7' , 
	c8 = '$c8' , 
	c9 = '$c9' , 
	c10 = '$c10' , 
	c11 = '$c11' , 
	c12 = '$c12' , 
	c13 = '$c13' , 
	mes = '$mes' , 
	azucar = '$azucar' , 
	vasos = '$vasos' , 
	cafe = '$cafe'
	
	WHERE
	idservicio = '$id' ";

	if (@mysql_query($cadena))
	 {
	  echo "<script>alert('Registro actualizado');document.location='servicio.php';</script>";
	}
   else
   {
   echo "<script>alert('Ocurrio un error actualizando el registro.');window.history.back(-1);</script>";
   }

        

}
if (@$_GET[codigo]!="") {
    $cadena2="select * from servicio where idservicio=$_GET[codigo]";
    $datos2=mysql_query($cadena2);
    $fila2=mysql_fetch_assoc($datos2);
}	
?>
<form action="modificarservicio.php" method="post" enctype="multipart/form-data" name="form1" id="form1" onSubmit="return validar(this)">
  <table width="88%" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
	<td height="20" bgcolor="#CCCCCC"><div align="left"><strong>DATOS GENERALES</strong>&nbsp;</div></td>
	</tr>
	<tr>
	<td>
	<table width="100%">
	<tr  >
      <td  ><div align="right"><strong>N&uacute;mero Planilla:</strong></div></td>
      <td >
        <div align="left">
         <?=$fila2["numero"]; ?>
          </div></td>
	    </tr>
    <tr  >
      <td  ><div align="right"><strong>Cliente:</strong></div></td>
      <td   colspan="3" >
	  <?
	  $cadena="select * from empleados order by nombre";
	  $datos=mysql_query($cadena);
	  
	  ?>
        <div align="left">
          <select disabled="disabled"   name="cliente" id="cliente" title="Cliente al cual se le da el entrenamiento" style="width:270px">
		  <? while ($fila=mysql_fetch_assoc($datos)) {
		   ?>
		  <option value="<?=$fila["rif"]; ?>"><?=$fila["nombre"]; ?></option>
		  <? } ?>
          </select>
        </div></td>
	    </tr>
	<tr  >
      <td  valign="middle" ><div align="right"><strong>Tipo de Servicio:</strong></div></td>
      <td colspan="3" >
	  <table>
	  <tr>
	  <td>          <div align="right">Mantenimiento Preventivo </div></td>
	    <td><div align="left">
	      <input disabled="disabled"  name="preventivo" type="checkbox" id="preventivo" title="" value="SI">	  
	      </div></td>
	  <td>          <div align="right">Mantenimiento Correctivo</div></td>
	    <td><div align="left">
	      <input disabled="disabled"  name="correctivo" type="checkbox" id="correctivo" title="" value="SI">	  
	      </div></td>
	  <td><div align="right">Calibraci&oacute;n</div></td>
	    <td><div align="left">
	      <input disabled="disabled"  name="calibracion" type="checkbox" id="calibracion" title="" value="SI">	  
	      </div></td>
	  <td><div align="right">Instalaci&oacute;n</div></td>
	    <td><div align="left">
	      <input disabled="disabled"  name="instalacion" type="checkbox" id="instalacion" title="" value="SI">	  
	      </div></td>
	  </tr>
	  <tr>
	  <td>          <div align="right">Retiro</div></td>
	    <td><div align="left">
	      <input disabled="disabled"  name="retiro" type="checkbox" id="retiro" title="" value="SI">	  
	      </div></td>
	  <td><div align="right">Prospecci&oacute;n</div></td>
	    <td><div align="left">
	      <input disabled="disabled"  name="prospeccion" type="checkbox" id="prospeccion" title="" value="SI">	  
	      </div></td>
	  <td>          <div align="right">Otros</div></td>
	    <td><div align="left">
	      <input disabled="disabled"  name="otros" type="checkbox" id="otros" title="" value="SI">	  
	      </div></td>
	  </tr>
	  </table>                </td>
	    </tr>
	<tr  >
      <td  ><div align="right"><strong>Fecha:</strong></div></td>
      <td >
        <div align="left">
          <input disabled="disabled"  name="fecha" type="text" id="fecha" title="Fecha del Servicio"   value="<?=cambiafecha($fila2["fecha"]); ?>" size="35" maxlength="250" readonly="true" >
        </div></td>
	    <td ><div align="right"><strong>Hora Entrada:</strong></div></td>
      <td  >
        <div align="left">
          <input disabled="disabled"  name="horaentrada" type="text" id="horaentrada" title="Hora de Entrada" value="<?=$fila2["horaentrada"]; ?>" size="8" maxlength="250"  readonly="true">
          <strong>Hora Salida:</strong>
          <input disabled="disabled"  name="horasalida" type="text" id="horasalida" title="Hora de Salida" value="<?=$fila2["horasalida"]; ?>" size="8" maxlength="250"  readonly="true">
        </div></td>
    </tr>
	<tr  >
      <td  ><div align="right"><strong>T&eacute;cnico:</strong></div></td>
      <td >
        <div align="left">
          <input disabled="disabled"  name="tecnico" type="text" id="tecnico" title="Tecnico del Servicio" value="<?=$fila2["tecnico"]; ?>" size="35" maxlength="250">
        </div></td>
	    <td ><div align="right"><strong>Ubicaci&oacute;n M&aacute;quina:</strong></div></td>
      <td  >
        <div align="left">
          <input disabled="disabled"  name="ubicacion" type="text" id="ubicacion" title="Ubicacion de la maquina" value="<?=$fila2["ubicacion"]; ?>" size="35" maxlength="250">
        </div></td>
    </tr>
	<tr  >
      <td  ><div align="right"><strong>Responsable:</strong></div></td>
      <td >
        <div align="left">
          <input disabled="disabled"  name="responsable" type="text" id="responsable" title="Responsable" value="<?=$fila2["responsable"]; ?>" size="35" maxlength="250">
        </div></td>
	    <td colspan="2" >&nbsp;</td>
      </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	<TR>
	<td colspan="3"><hr>	</td>
	</TR>
	<tr bgcolor="#CCCCCC"  >
      <td width="80%"  ><div align="left"><strong>MEDICIONES</strong></div></td>
	  <td  ><div align="center"><strong>MAQUINA</strong></div></td>
	  <td  ><div align="center"><strong>MOLINO</strong></div></td>
    </tr>
	
	<tr  >
      <td  ><div align="left"><strong>El Equipo se encuentra operativo </strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p1" id="p1">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
          </div></td>
	  <td  >
	    <div align="center">
	      <select disabled="disabled"  name="p2" id="p2">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
      </tr>
	<tr  >
      <td  ><div align="left"><strong>La Limpieza externa es adecuada</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p3" id="p3">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p4" id="p4">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>El estado de la rotulaci&oacute;n es aceptable</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p5" id="p5">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p6" id="p6">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>Tiene etiqueta de informaci&oacute;n y servicio t&eacute;cnico actualizada</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p7" id="p7">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p8" id="p8">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>La Limpieza del equipo es adecuada</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p9" id="p9">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p10" id="p10">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>Las partes cr&iacute;ticas del equipo trabajan correctamente y est&aacute;n en buenas condiciones</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p11">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p12">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>El producto utilizado en la m&aacute;quina es Bila</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p13">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p14">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>Los equipos estan libres de plaga</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p15">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p16">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>El suministro de agua de la m&aacute;quina cumple con los requisitos de Bila</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p17">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p18">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>El tipo de molido es el correcto</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p19">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p20">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
		<tr  >
      <td  ><div align="left"><strong>Peso de dosificaci&oacute;n entre 6.8 y 7.2 gr.</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p21">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    <td  ><div align="center">
	      <select disabled="disabled"  name="p22">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
	    </div></td>
        </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	<TR>
	<td colspan="2"><hr>	</td>
	</TR>
	<tr bgcolor="#CCCCCC"  >
      <td  width="80%"  ><div align="left"><strong>ESTABLECIMIENTO Y AREA DE CAFE</strong></div></td>
	  <td  ><div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td  ><div align="left"><strong>La vajilla cumple con los par&aacute;metros correctos </strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p23">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
          </div></td>
	  </tr>
	<tr  >
      <td  ><div align="left"><strong>Esta el establecimiento libre de plaga o evidencia de esta</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p24">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>La calidad del producto servido es la correcta</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p25">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>Es adecuada la imagen de la marca en el exterior</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p26">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>Es adecuada la imagen de la marca en el interior </strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p27">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>Existe alguna maquina de caf&eacute; instantaneo</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p28">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
		<tr  >
      <td  ><div align="left"><strong>Se siguen los procedimientos de preparaci&oacute;n recomendado</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p29">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
        </div></td>
	    </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  height="35px" >
      <td width="80%"    ><div align="left"><strong>NIVEL DE SERVICIO</strong></div></td>
	  <td  ><div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td  ><div align="left"><strong>El personal fue informado sobre el correcto funcionamiento y limpieza de la m&aacute;quina</strong></div></td>
      <td >
        <div align="center">
          <select disabled="disabled"  name="p30">
            <option value="">---</option><option value="SI">SI</option>
            <option value="NO">NO</option>
            <option value="RESUELTO">RESUELTO</option>
          </SELECT>
          </div></td>
	  </tr>
	  <tr  >
      <td colspan="1"  ><div align="left"><strong>Nombre completo del operador(es) mientras la auditor&iacute;a es realizada:</strong></div></td>
      <td colspan="1" ><div align="left">
            <input disabled="disabled"  name="c1" type="text" id="c1" size="35" maxlength="250" title="">
      </div></td>
	    </tr>
		<TR>
		<td colspan="2">
		<table width="100%">
		<tr>
		<td>MOLINO</td>
		<td>MAQUINA</td>
		<td>230V</td>
		<td>115V</td>
		<td>DEPURADOR</td>
		<td>FILTRO</td>
		</tr>
		<tr>
		<td><select disabled="disabled"  name="p31" id="p31">
		<option value="">---</option>
		  <option value="AUTOMATICO">AUTOMATICO</option>
		  <option value="MANUAL">MANUAL</option>
		</select></td><td><select disabled="disabled"  name="p32" id="p32">
		<option value="">---</option>
		  <option value="1 G">1 G</option>
		  <option value="2 G">2 G</option>
		  <option value="3 G">3 G</option>
                </select></td><td><input disabled="disabled"  name="energia" type="radio" value="SI"></td><td><input disabled="disabled"  name="energia" type="radio" value="NO"></td><td><input disabled="disabled"  name="depurador" type="radio" value="SI">
                  SI
                    <input disabled="disabled"  name="depurador" type="radio" value="NO">
                    NO</td>
                <td><input disabled="disabled"  name="filtro" type="radio" value="SI">
SI
  <input disabled="disabled"  name="filtro" type="radio" value="NO">
NO</td>
		</tr>
		</table>		</td>
		</TR>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td colspan="8" height="35px"   ><div align="left"><strong>REPUESTOS UTILIZADOS EN LA MAQUINA (CORRECTIVO)</strong></div>        <div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td ><div align="right">
        <input disabled="disabled"  name="ch1" type="checkbox" id="ch1" value="SI">
      </div></td>
      <td ><div align="left">Filtro Ciego </div></td><td ><div align="right">
        <input disabled="disabled"  name="ch2" type="checkbox" id="ch2" value="SI">
      </div></td>
      <td ><div align="left">Ret&eacute;n</div></td><td ><div align="right">
        <input disabled="disabled"  name="ch3" type="checkbox" id="ch3" value="SI">
      </div></td>
      <td ><div align="left">Pomo Vapor </div></td><td ><div align="right">
        <input disabled="disabled"  name="ch4" type="checkbox" id="ch4" value="SI">
      </div></td>
      <td ><div align="left">Switch on/off </div></td>
	  </tr>
	  <tr  >
      <td ><div align="right">
        <input disabled="disabled"  name="ch5" type="checkbox" id="ch5" value="SI">
      </div></td>
      <td ><div align="left">Ducha</div></td><td ><div align="right">
        <input disabled="disabled"  name="ch6" type="checkbox" id="ch6" value="SI">
      </div></td>
      <td ><div align="left">Tubo de agua </div></td><td ><div align="right">
        <input disabled="disabled"  name="ch7" type="checkbox" id="ch7" value="SI">
      </div></td>
      <td ><div align="left">Pomo agua </div></td><td ><div align="right">
        <input disabled="disabled"  name="ch8" type="checkbox" id="ch8" value="SI">
      </div></td>
      <td ><div align="left">Tubo vapor </div></td>
	  </tr>
	  <tr  >
      <td ><div align="right">
        <input disabled="disabled"  name="ch9" type="checkbox" id="ch9" value="SI">
      </div></td>
      <td ><div align="left">Empacadura</div></td><td colspan="2" ><div align="left">
        <input disabled="disabled"  name="filtro1" type="radio" value="SI">
        Filtro 1 
        <input disabled="disabled"  name="filtro1" type="radio" value="NO">
        Filtro 2 </div></td>
      <td ><div align="right">
        <input disabled="disabled"  name="ch10" type="checkbox" id="ch10" value="SI">
      </div></td>
      <td ><div align="left">Centralina</div></td><td ><div align="right">
        <input disabled="disabled"  name="ch11" type="checkbox" id="ch11" value="SI">
      </div></td>
      <td ><div align="left">Otro: 
        <input disabled="disabled"  name="c2" type="text" id="c2" size="20" maxlength="250" title="">
      </div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td><table width="100%" border="0" cellpadding="1" cellspacing="1">
     
      <tr bgcolor="#CCCCCC"  >
        <td colspan="8" height="35px"   ><div align="left"><strong>REPUESTOS UTILIZADOS EN EL MOLINO (CORRECTIVO)</strong></div>
            <div align="center"></div></td>
      </tr>
      <tr  >
        <td ><div align="right">
            <input disabled="disabled"  name="ch12" type="checkbox" id="ch12" value="SI">
        </div></td>
        <td ><div align="left">Horquilla </div></td>
        <td ><div align="right">
            <input disabled="disabled"  name="ch13" type="checkbox" id="ch13" value="SI">
        </div></td>
        <td ><div align="left">Resorte</div></td>
        <td ><div align="right">
            <input disabled="disabled"  name="ch14" type="checkbox" id="ch14" value="SI">
        </div></td>
        <td ><div align="left">Tolva</div></td>
        <td ><div align="right">
            <input disabled="disabled"  name="ch15" type="checkbox" id="ch15" value="SI">
        </div></td>
        <td ><div align="left">Tapa dosificador</div></td>
      </tr>
      <tr  >
        <td ><div align="right">
            <input disabled="disabled"  name="ch16" type="checkbox" id="ch16" value="SI">
        </div></td>
        <td ><div align="left">Estrella dosificador</div></td>
        <td ><div align="right">
            <input disabled="disabled"  name="ch17" type="checkbox" id="ch17" value="SI">
        </div></td>
        <td ><div align="left">Fresas</div></td>
        <td ><div align="right">
            <input disabled="disabled"  name="ch18" type="checkbox" id="ch18" value="SI">
        </div></td>
        <td ><div align="left">Tapa Tolva</div></td>
        <td ><div align="right">
            <input disabled="disabled"  name="ch19" type="checkbox" id="ch19" value="SI">
        </div></td>
        <td ><div align="left">Otro: 
            <input disabled="disabled"  name="c3" type="text" id="c3" size="20" maxlength="250" title="">
        </div></td>
      </tr>
      
    </table></td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td  height="35px" colspan="2" ><div align="left"><strong>TIPO DE MANTENIMIENTO</strong></div></td>
	  </tr>
	
	<tr  >
      <td   ><input disabled="disabled"  name="ch20" type="checkbox" id="ch20" value="SI"></td>
      <td >
        <div align="left">A: Limpieza de equipos: Grupos, duchas, tubo vapor, desague, filtros, portafiltros, exterior de m&aacute;quina, tolva, dosificador, exterior molino</div></td>
	  </tr>
	  <tr  >
      <td   ><input disabled="disabled"  name="ch21" type="checkbox" id="ch21" value="SI"></td>
      <td >
        <div align="left">B: Tipo A m&aacute;s: Depuraci&oacute;n, calibraci&oacute;n de bomba y presostato (si es necesario), limpieza entrada de agua, limpieza de fresas, diagn&oacute;stico general</div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td  height="35px" colspan="6"  ><div align="left"><strong>PROXIMO MANTENIMIENTO B</strong></div>        <div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td width="22%" ><div align="right">
        <input disabled="disabled"  name="mes" type="radio" value="1">
      </div></td>
      <td width="11%" ><div align="left">1 mes</div></td><td width="5%" ><div align="right">
        <input disabled="disabled"  name="mes" type="radio" value="2">
      </div></td>
      <td width="11%" ><div align="left">2 meses </div></td><td width="6%" ><div align="right">
        <input disabled="disabled"  name="mes" type="radio" value="3">
      </div></td>
      <td width="45%" ><div align="left">3 meses </div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td  height="35px" colspan="2"  ><div align="left"><strong>INVENTARIO</strong></div></td>
	  <td colspan="2"  ><div align="center"><strong>PRODUCTOS</strong></div></td>
	  </tr>
	
	<tr  >
      <td  ><div align="right">Tasa Peque&ntilde;a</div></td>
      <td  >
        <div align="left">
          <input disabled="disabled"  name="c4" type="text" id="c4" size="10" maxlength="250" title="" onKeyPress="return acceptNum(event)" style="text-align:right">
          </div></td>
      <td colspan="2"  ><div align="center">Az&uacute;car Bila</div></td>
	  </tr>
	  <tr  >
      <td  ><div align="right">Plato Peque&ntilde;o</div></td>
      <td  >
        <div align="left">
          <input disabled="disabled"  name="c5" type="text" id="c5" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
          </div></td>
      <td  >
        <div align="right">
          <input disabled="disabled"  name="azucar" type="radio" id="tecnico22222" title="" value="SI">
          SI        </div></td>
      <td  >
        <div align="left">
          <input disabled="disabled"  name="azucar" type="radio" id="radio" title="" value="NO">
          NO</div></td>
	  </tr>
	  <tr  >
      <td  ><div align="right">Tasa Grande</div></td>
      <td  >
        <div align="left">
          <input disabled="disabled"  name="c6" type="text" id="c6" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
          </div></td>
      <td colspan="2"  ><div align="center">Vasos Bila</div></td>
	  </tr>
	  <tr  >
      <td  ><div align="right">Plato Grande</div></td>
      <td  >
        <div align="left">
          <input disabled="disabled"  name="c7" type="text" id="c7" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
          </div></td>
      <td  >
        <div align="right">
          <input disabled="disabled"  name="vasos" type="radio" id="radio2" title="" value="SI">
          SI</div></td>
      <td  >
        <div align="left">
          <input disabled="disabled"  name="vasos" type="radio" id="radio3" title="" value="NO">
          NO</div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">

	<tr bgcolor="#CCCCCC"  >
      <td  height="35px" colspan="5"   ><div align="left"><strong>CAFE</strong></div>        <div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td width="36%"  ><div align="right">Grano:</div></td>
      <td width="5%" >
        2.5kg</td>
      <td width="7%" >
        
          <div align="left">
            <input disabled="disabled"  name="c8" type="text" id="c8" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
            </div></td><td width="9%" >
              <div align="right">250 gr</div></td><td width="43%" >
        
          <div align="left">
            <input disabled="disabled"  name="c9" type="text" id="c9" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
            </div></td>
	  </tr>
	  <tr  >
      <td  ><div align="right">Molido:</div></td>
      <td >
        3.0kg</td>
      <td >
        
          <div align="left">
            <input disabled="disabled"  name="c10" type="text" id="c10" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
            </div></td><td >
              <div align="right">300 gr</div></td><td >
        
          <div align="left">
            <input disabled="disabled"  name="c11" type="text" id="c11" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
            </div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
	
	<tr bgcolor="#CCCCCC"  >
      <td height="35" colspan="4"   ><div align="left"><strong>PRECIO DE VENTA DEL CAFE</strong></div>        <div align="center"></div></td>
	  </tr>
	
	<tr  >
      <td width="36%"  ><div align="right">Grande Bs.</div></td>
      <td width="8%" ><div align="left">
        <input disabled="disabled"  name="c12" type="text" id="c12" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
      </div></td>
      <td width="9%" ><div align="right">Peque&ntilde;o Bs. </div></td><td width="47%" ><div align="left">
        <input disabled="disabled"  name="c13" type="text" id="c13" size="10" maxlength="250" title=""  onKeyPress="return acceptNum(event)" style="text-align:right">
      </div></td>
	</tr>
	  <tr  >
      <td  ><div align="right">Dep. Residuos Caf&eacute;</div></td>
      <td >
        <div align="center">
          <input disabled="disabled"  name="cafe" type="radio" id="radio4" title="" value="SI">
          SI</div></td>
      <td ><div align="left">
        <input disabled="disabled"  name="cafe" type="radio" id="radio5" title="" value="NO">
        NO</div></td><td ><div align="left"></div></td>
	  </tr>
	</table>	</td>
	</tr>
	<tr>
	<td align="center"><table width="100%" align="center" border="1" cellpadding="0" cellspacing="0"  bordercolor="#999999" bordercolorlight="#CCCCCC" bordercolordark="#CCCCCC"  style="BORDER-COLLAPSE: collapse">
	<tr>
	<td><div align="center"><strong>Firma
	  </strong></div></td>
	<td><div align="center"><strong>Sello</strong></div></td>
	</tr>
	<tr height="70">
	<td>&nbsp;	</td><td>&nbsp;</td>
	</tr>
	</table></td>
	</tr>
    <tr >
      <td  colspan="2" align="center" ><input name="Input" type="button" value="Imprimir" onClick="window.print();">        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input   name="Submit3" type="button"  onClick="Ir()" value="Menu Servicio" /></td></tr>
  </table>
  <input disabled="disabled"  type="hidden" name="MM_insert" value="form1">
 <input disabled="disabled"  name="id" type="hidden" value="<?=$fila2["idservicio"]; ?>">
<script>document.form1.cliente.value="<?=$fila2["idcliente"]; ?>";</script>
  <?  if ($fila2['preventivo']=="SI")  { ?><script>document.form1.preventivo.checked="true";</script><? } ?> 
	<?  if ($fila2['correctivo']=="SI")  { ?><script>document.form1.correctivo.checked="true";</script><? } ?> 
	<?  if ($fila2['calibracion']=="SI") { ?><script>document.form1.calibracion.checked="true";</script><? } ?> 
	<?  if ($fila2['instalacion']=="SI")  { ?><script>document.form1.instalacion.checked="true";</script><? } ?> 
	<?  if ($fila2['retiro']=="SI")  { ?><script>document.form1.retiro.checked="true";</script><? } ?> 
	<?  if ($fila2['prospeccion']=="SI")  { ?><script>document.form1.prospeccion.checked="true";</script><? } ?> 
	<?  if ($fila2['otros']=="SI")  { ?><script>document.form1.otros.checked="true";</script><? } ?> 
	<script>
	document.form1.p1.value="<?=$fila2["p1"];?>";
	document.form1.p2.value="<?=$fila2["p2"];?>";
	document.form1.p3.value="<?=$fila2["p3"];?>";
	document.form1.p4.value="<?=$fila2["p4"];?>";
	document.form1.p5.value="<?=$fila2["p5"];?>";
	document.form1.p6.value="<?=$fila2["p6"];?>";
	document.form1.p7.value="<?=$fila2["p7"];?>";
	document.form1.p8.value="<?=$fila2["p8"];?>";
	document.form1.p9.value="<?=$fila2["p9"];?>";
	document.form1.p10.value="<?=$fila2["p10"];?>";
	document.form1.p11.value="<?=$fila2["p11"];?>";
	document.form1.p12.value="<?=$fila2["p12"];?>";
	document.form1.p13.value="<?=$fila2["p13"];?>";
	document.form1.p14.value="<?=$fila2["p14"];?>";
	document.form1.p15.value="<?=$fila2["p15"];?>";
	document.form1.p16.value="<?=$fila2["p16"];?>";
	document.form1.p17.value="<?=$fila2["p17"];?>";
	document.form1.p18.value="<?=$fila2["p18"];?>";
	document.form1.p19.value="<?=$fila2["p19"];?>";
	document.form1.p20.value="<?=$fila2["p20"];?>";
	document.form1.p21.value="<?=$fila2["p21"];?>";
	document.form1.p22.value="<?=$fila2["p22"];?>";
	document.form1.p23.value="<?=$fila2["p23"];?>";
	document.form1.p24.value="<?=$fila2["p24"];?>";
	document.form1.p25.value="<?=$fila2["p25"];?>";
	document.form1.p26.value="<?=$fila2["p26"];?>";
	document.form1.p27.value="<?=$fila2["p27"];?>";
	document.form1.p28.value="<?=$fila2["p28"];?>";
	document.form1.p29.value="<?=$fila2["p29"];?>";
	document.form1.p30.value="<?=$fila2["p30"];?>";
	document.form1.p31.value="<?=$fila2["p31"];?>";
	document.form1.p32.value="<?=$fila2["p32"];?>";
	
	</script>
	<script>
	document.form1.c1.value="<?=$fila2["c1"];?>";
	document.form1.c2.value="<?=$fila2["c2"];?>";
	document.form1.c3.value="<?=$fila2["c3"];?>";
	document.form1.c4.value="<?=$fila2["c4"];?>";
	document.form1.c5.value="<?=$fila2["c5"];?>";
	document.form1.c6.value="<?=$fila2["c6"];?>";
	document.form1.c7.value="<?=$fila2["c7"];?>";
	document.form1.c8.value="<?=$fila2["c8"];?>";
	document.form1.c9.value="<?=$fila2["c9"];?>";
	document.form1.c10.value="<?=$fila2["c10"];?>";
	document.form1.c11.value="<?=$fila2["c11"];?>";
	document.form1.c12.value="<?=$fila2["c12"];?>";
	document.form1.c13.value="<?=$fila2["c13"];?>";
	</script>
	<?  if ($fila2['energia']=="SI")  { 
	   ?><script>document.form1.energia[0].checked="true";</script><? }
	else{ 
	   ?><script>document.form1.energia[1].checked="true";</script><? }
	    ?>
	<?  if ($fila2['depurador']=="SI")  { 
	   ?><script>document.form1.depurador[0].checked="true";</script><? }
	else{ 
	   ?><script>document.form1.depurador[1].checked="true";</script><? }
	    ?>
	<?  if ($fila2['filtro']=="SI")  { 
	   ?><script>document.form1.filtro[0].checked="true";</script><? }
	else{ 
	   ?><script>document.form1.filtro[1].checked="true";</script><? } ?>
	   
	  <?  if ($fila2['filtro1']=="SI")  { 
	   ?><script>document.form1.filtro1[0].checked="true";</script><? }
	else{ 
	   ?><script>document.form1.filtro1[1].checked="true";</script><? } ?>
	   
	   <?  if ($fila2['mes']=="1")  { 
	   ?><script>document.form1.mes[0].checked="true";</script><? }?>
	   <?  if ($fila2['mes']=="2")  { 
	   ?><script>document.form1.mes[1].checked="true";</script><? }?>
	   <?  if ($fila2['mes']=="3")  { 
	   ?><script>document.form1.mes[2].checked="true";</script><? }?>
	
	   
	   <?  if ($fila2['azucar']=="SI")  { 
	   ?><script>document.form1.azucar[0].checked="true";</script><? }
	else{ 
	   ?><script>document.form1.azucar[1].checked="true";</script><? } ?>
	   
	   <?  if ($fila2['vasos']=="SI")  { 
	   ?><script>document.form1.vasos[0].checked="true";</script><? }
	else{ 
	   ?><script>document.form1.vasos[1].checked="true";</script><? } 
	    ?>		   
		
		<?  if ($fila2['cafe']=="SI")  { 
	   ?><script>document.form1.cafe[0].checked="true";</script><? }
	else{ 
	   ?><script>document.form1.cafe[1].checked="true";</script><? } 
	    ?>		   
		
	   <?  if ($fila2['ch1']=="SI")  { ?><script>document.form1.ch1.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch2']=="SI")  { ?><script>document.form1.ch2.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch3']=="SI")  { ?><script>document.form1.ch3.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch4']=="SI")  { ?><script>document.form1.ch4.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch5']=="SI")  { ?><script>document.form1.ch5.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch6']=="SI")  { ?><script>document.form1.ch6.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch7']=="SI")  { ?><script>document.form1.ch7.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch8']=="SI")  { ?><script>document.form1.ch8.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch9']=="SI")  { ?><script>document.form1.ch9.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch10']=="SI")  { ?><script>document.form1.ch10.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch11']=="SI")  { ?><script>document.form1.ch11.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch12']=="SI")  { ?><script>document.form1.ch12.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch13']=="SI")  { ?><script>document.form1.ch13.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch14']=="SI")  { ?><script>document.form1.ch14.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch15']=="SI")  { ?><script>document.form1.ch15.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch16']=="SI")  { ?><script>document.form1.ch16.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch17']=="SI")  { ?><script>document.form1.ch17.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch18']=="SI")  { ?><script>document.form1.ch18.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch19']=="SI")  { ?><script>document.form1.ch19.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch20']=="SI")  { ?><script>document.form1.ch20.checked="true";</script><? } ?> 
	   <?  if ($fila2['ch21']=="SI")  { ?><script>document.form1.ch21.checked="true";</script><? } ?> 
</form>
</body>
</html>
